package  
{
	import flash.display.DisplayObjectContainer;
	import org.robotlegs.mvcs.Context;
	import view.mediator.AddIdeaPanelMediator;
	import view.mediator.ListViewMediator;
	import view.panels.AddIdeaPanel;
	import view.ui.HeadBar;
	import view.ui.InfoControl;
	import view.ui.ListView;
	import view.ui.SubInfoView;
	
	/**
	 * ...
	 * @author ...
	 */
	public class MainContext extends Context 
	{
		
		public function MainContext(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true) 
		{
			super(contextView, autoStartup);			
		}
		
		override public function startup():void 
		{
			super.startup();
			
			mediatorMap.mapView(ListView, ListViewMediator);
			mediatorMap.mapView(AddIdeaPanel, AddIdeaPanelMediator);
			
			contextView.addChild(new HeadBar());	
			contextView.addChild(new SubInfoView());
			contextView.addChild(new ListView());
			contextView.addChild(new InfoControl());
			contextView.addChild(new AddIdeaPanel());
		}		
	}
}